require('../css/commCss/normalize.css')
require('../css/commCss/reset.css')
require('../css/commCss/property.css')
require('../css/commCss/basic.css')

// 本身样式
require('../css/motionNum.less')

// 字体
require('../libs/fonts/iconfont.css')

//axios请求
const axios = require('axios')


// weui-插件库
require('weui')
const weui = require('weui.js')



// 文档加载事件
document.addEventListener('DOMContentLoaded',function(){
    
    /**
     * 1.倒计时
     */
    let num = document.querySelector('#num');

    let time = 3;
    let goTime = setInterval(function(){
        // console.log(time);
        //自减
        --time;
        //判断
        if(time < 0){
            clearInterval(goTime)
            location.href = './motionIng.html'
        }else if(time === 0){
            num.textContent = "GO"
        }else{
            num.textContent = time
        }
    },1000)
})